﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Leaveword.aspx.cs" Inherits="Leaveword" %>

<%@ Register Src="UserControls/Left_Trends.ascx" TagName="Left_Trends" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>信管系简介-河北大学管理学院信息管理系</title>
    <link href="CSS/pagebody.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .div1
        {
            margin-top: 5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!-- left start-->
    <div id="left">
        <uc1:Left_Trends ID="Left_Trends1" runat="server" />
    </div>
    <!-- left end -->
    <!--  right start -->
    <div id="right">
        <div class="right-top">
            <div style="font-size: 14px; padding-top: 8px; padding-left: 18px">
                您的当前位置：<a href="Default.aspx">首页</a> > <a href="Leaveword.aspx?ID=">请您留言</a>
            </div>
        </div>
        <div class="right-center">
            <div>
                留言者：
                <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName"
                    ErrorMessage="姓名不能为空" ForeColor="Red" Font-Size="Small"></asp:RequiredFieldValidator></div>
            <div class="div1">
                主 题：
                <asp:TextBox ID="txtTitle" runat="server" Width="200px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ControlToValidate="txtTitle"
                    ErrorMessage="主题不能为空" ForeColor="Red" Font-Size="Small"></asp:RequiredFieldValidator></div>
            <div class="div1">
                请您留言：
                <asp:TextBox ID="txtContent" runat="server" Height="55px" Width="519px" TextMode="MultiLine"></asp:TextBox>
            </div>
            <asp:RequiredFieldValidator ID="rvfContent" runat="server" ErrorMessage="请输入内容" ControlToValidate="txtContent"
                ForeColor="Red" Font-Size="Small"></asp:RequiredFieldValidator>
            <asp:Button ID="btOK" runat="server" Text="确定" Width="56px" OnClick="btOK_Click" />
            &nbsp;&nbsp;
            <asp:Button ID="btReset" runat="server" Text="重置" Width="56px" OnClick="btReset_Click" />
            <br />
            <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
            <asp:GridView ID="gvLeave" runat="server" AutoGenerateColumns="False" CellPadding="4"
                ForeColor="#333333" GridLines="None" Style="margin-right: 0px" AllowPaging="True"
                OnPageIndexChanging="gvLeave_PageIndexChanging" PageSize="5" Width="612px" AllowSorting="True"
                ShowHeader="False">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <div>
                                留言人：<%# Eval("leaName")%></div>
                            <div style="float: right">
                                <%# Eval("leaTime")%></div>
                            <div>
                                留言主题：<%# Eval("leaTitle") %></div>
                            <div>
                                留言内容：</div>
                            <div>
                                <%# Eval("leaContent") %></div>
                            <hr />
                            <div>
                                管理员回复：</div>
                            <div style="float: right">
                                <%# Eval("leaReplyTime")%></div>
                            <div>
                                <%# Eval("leaReply") %></div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
